﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Top_Meeting.UI
{
    class TMUI
    {
        public static string LayoutPath = "Layout";
        public static string DefaultSkin = "DefaultSkin.tvrs";
        public static string CurrentSkin = DefaultSkin;
        public static string CurrentSkinPath = Path.Combine(LayoutPath, CurrentSkin);

        public static void Init()
        {
            SetSkin(CurrentSkinPath);
        }

        public static void ResetSkin()
        {
            string skin = Path.Combine(LayoutPath, DefaultSkin);

            Skin._Resources = Helper.ReadSkinResources(skin);
        }

        public static void SetSkin(string skinPath)
        {
            Skin._Resources = Helper.ReadSkinResources(skinPath);
        }

        public static Image SkinImage(string resName)
        {
            return Skin.Images(resName);
        }
    }
}
